﻿<%@ Page Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true"
    CodeBehind="ServiceDetails.aspx.cs" Inherits="Pantry.Web.Users.ServiceDetails"
    Title="Add Service" %>

<%@ Register TagPrefix="uc1" TagName="ListContact" Src="~/Users/Controls/ListContact.ascx" %>
<%@ Register TagPrefix="uc2" TagName="ServicePremise" Src="~/Users/Controls/ServicePremise.ascx" %>
<%@ Register TagPrefix="uc2" TagName="Organisation" Src="~/Users/Controls/ListOrganization.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    	function validate() {
    		if (document.getElementById("<%=TextBoxServiceName.ClientID%>").value == "") {
    			showmessage('Please input Service Name !', 'ERROR', '', 'false');
    			document.getElementById("<%=TextBoxServiceName.ClientID%>").focus();
    			return false;
    		}
    		if (document.getElementById("<%=TextBoxOrgannisationShortDescription.ClientID%>").value == "") {
    			showmessage('Please input Service Short Description !', 'ERROR', '', 'false');
    			document.getElementById("<%=TextBoxOrgannisationShortDescription.ClientID%>").focus();
    			return false;
    		}
    		if (document.getElementById("<%=TextBoxLeadContact.ClientID%>").value == "") {
    			showmessage('Please input Lead Contact !', 'ERROR', '', 'false');
    			return false;
    		}
    		if (document.getElementById("<%=TextBoxDeptCode.ClientID%>").value == "") {
    			showmessage('Please input Dept Code !', 'ERROR', '', 'false');
    			document.getElementById("<%=TextBoxDeptCode.ClientID%>").focus();
    			return false;
    		}
    		if (document.getElementById("<%=DropDownListServieType.ClientID%>").value == "") {
    			showmessage('Please input Service Type !', 'ERROR', '', 'false');
    			document.getElementById("<%=DropDownListServieType.ClientID%>").focus();
    			return false;
    		}
    		if (document.getElementById("<%=TextBoxServiceStartExpected.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxServiceStartExpected.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxServiceStartExpected.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxServiceStartDate.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxServiceStartDate.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxServiceStartDate.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxServiceEndDate.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxServiceEndDate.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxServiceEndDate.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundingStart.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxFundingStart.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundingStart.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundingEnd.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxFundingEnd.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundingEnd.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundraisingRequiredBy.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxFundraisingRequiredBy.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundraisingRequiredBy.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundraisingCompledtedDate.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxFundraisingCompledtedDate.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundraisingCompledtedDate.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundraisingDonation.ClientID%>").value!="")
            {
                var phone = /^(0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])[\/\-]\d{4}$/;
                var phoneid=document.getElementById("<%=TextBoxFundraisingDonation.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Date time is invalid format !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundraisingDonation.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundingAmount.ClientID%>").value!="")
            {
                var phone = /^\d{1,100}$/;
                var phoneid=document.getElementById("<%=TextBoxFundingAmount.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Must be a float here !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundingAmount.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundraisingDonorAmount.ClientID%>").value!="")
            {
                var phone = /^\d{1,100}$/;
                var phoneid=document.getElementById("<%=TextBoxFundraisingDonorAmount.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Must be a float here !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundraisingDonorAmount.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundingContinuationAmount.ClientID%>").value!="")
            {
                var phone = /^[-+]?([0-9]*\.[0-9]+|[0-9]+)$/;
                var phoneid=document.getElementById("<%=TextBoxFundingContinuationAmount.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Must be a float here !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundingContinuationAmount.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundraisingDonorAmount.ClientID%>").value!="")
            {
                var phone = /^[-+]?([0-9]*\.[0-9]+|[0-9]+)$/;
                var phoneid=document.getElementById("<%=TextBoxFundraisingDonorAmount.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Must be a float here !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundraisingDonorAmount.ClientID %>").focus();
                    return false;
                }
            }
            if (document.getElementById("<%=TextBoxFundingAmount.ClientID%>").value!="")
            {
                var phone = /^[-+]?([0-9]*\.[0-9]+|[0-9]+)$/;
                var phoneid=document.getElementById("<%=TextBoxFundingAmount.ClientID %>").value;
                var matchArray = phoneid.match(phone);
                if (matchArray == null)
                {
                    showmessage('Must be a float here !','ERROR','','false');
                    document.getElementById("<%=TextBoxFundingAmount.ClientID %>").focus();
                    return false;
                }
            }
    		return true;
    	}
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="g_12_tienvn" id="table_wTabs">
        <div class="duongnt8_title">
            <h4 class="widget_header_title wwIcon i_16_tables">
                <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
                <asp:SiteMapPath ID="SiteMapPath1" runat="server">
                </asp:SiteMapPath>
                <% var action = Request.QueryString["action"];
                   Response.Write(action == "create" ? "Create New Service" : "Service Details"); %>
            </h4>
        </div>
        <div class="widget_header wwOptions" id="table_wTabs">
            <ul class="w_Tabs">
                <li><a href="#table_wTabs-1" title="Tab 1">Detail 1</a></li>
                <li><a href="#table_wTabs-2" title="Tab 2">Detail 2</a></li>
                <li><a href="#table_wTabs-3" title="Tab 3">Detail 3</a></li>
                <li><a href="#table_wTabs-4" title="Contract">Contract</a></li>
                <li><a href="#table_wTabs-5" title="Funding">Funding</a></li>
                <li><a href="#table_wTabs-6" title="Premise">Premise</a></li>
                <li><a href="#table_wTabs-7" title="Premise">Organisation</a></li>
            </ul>
            <div class="top-nav">
                <asp:Button runat="server" ID="ButtonMarkInActive" Text="In-Active" OnClick="MarkSeviceInActive"
                    CssClass="buttontop" OnClientClick="return confirm('Do you want to make this service is in-active?');" />
                <asp:Button ID="ButtonSave" runat="server" Text="Save" CssClass="buttontop" OnClick="SaveServiceClick"
                    OnClientClick="return validate();" />
                <asp:Button ID="ButtonBack" runat="server" Text="Back" CssClass="buttontop" OnClick="ButtonBackClick" />
            </div>
        </div>
        <div style="clear: both;">
        </div>
        <div class="widget_contents">
            <div id="table_wTabs-1">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="CheckBoxServiceExtendable" EventName="CheckedChanged" />
                        <asp:AsyncPostBackTrigger ControlID="CheckBoxServiceTimeLimited" EventName="CheckedChanged" />
                    </Triggers>
                    <ContentTemplate>

                        <script src="Resources/js/DataTables/jquery.dataTables.min.js" type="text/javascript"></script>

                        <script type="text/javascript" language="javascript">
                            Sys.Application.add_load(doSprin);
                        </script>

                        <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                            <div class="Duongnt8WidgetContent">
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li>Service Name <span style="color: Red">*</span></li>
                                        <li class="mutiline">Service Short Description<span style="color: Red">*</span></li>
                                        <li>Sub Type</li>
                                        <li>Lead Contact<span style="color: Red">*</span></li>
                                        <li>Client Description Description</li>
                                        <li>Service Attendance</li>
                                        <li>Service Start Expected</li>
                                        <li>Service Start Date</li>
                                        <li>Service End Date</li>
                                        <li>Service Extendable</li>
                                        <li></li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:TextBox ID="TextBoxServiceName" runat="server" />
                                        </li>
                                        <li>
                                            <asp:TextBox ID="TextBoxOrgannisationShortDescription" runat="server" TextMode="MultiLine" />
                                        </li>
                                        <li>
                                            <asp:DropDownList runat="server" ID="DropDownListSubType" CssClass="changeTab" />
                                        </li>
                                        <li>
                                            <asp:TextBox ID="TextBoxLeadContact" runat="server" CssClass="small_text" Enabled="false" />
                                            <asp:HiddenField ID="HiddenFeildContactId" runat="server" />
                                            <asp:Button ID="ButtonLookupContact" runat="server" Text="Lookup" CssClass="buttonlookup lookupcontact" />
                                        </li>
                                        <li>
                                            <asp:TextBox ID="TextBoxClientDescription" runat="server" TextMode="MultiLine" />
                                        </li>
                                        <li>
                                            <asp:DropDownList runat="server" ID="DropDownListServiceAttendance" />
                                        </li>
                                        <li>
                                            <div class="btTopF" title="Date format : mm/dd/yyyy">
                                                <asp:TextBox ID="TextBoxServiceStartExpected" runat="server" placeholder="mm/dd/yyyy"
                                                    CssClass="pick_date" AutoPostBack="true" OnTextChanged="CheckCondition" />
                                            </div>
                                        </li>
                                        <li>
                                            <div class="btTopF" title="Date format : mm/dd/yyyy">
                                                <asp:TextBox ID="TextBoxServiceStartDate" runat="server" placeholder="mm/dd/yyyy"
                                                    CssClass="pick_date" AutoPostBack="true" OnTextChanged="CheckCondition" />
                                            </div>
                                        </li>
                                        <li>
                                            <div class="btTopF" title="Date format : mm/dd/yyyy - example: 12/25/2012">
                                                <asp:TextBox ID="TextBoxServiceEndDate" runat="server" placeholder="mm/dd/yyyy" CssClass="pick_date"
                                                    AutoPostBack="true" OnTextChanged="CheckCondition" />
                                            </div>
                                        </li>
                                        <li>
                                            <asp:CheckBox runat="server" ID="CheckBoxServiceExtendable" OnCheckedChanged="CheckCondition"
                                                AutoPostBack="True" />
                                        </li>
                                        <li>
                                            <div class="SpinnerYear">
                                                <div class="Duongnt8Spinner">
                                                    <asp:TextBox runat="server" CssClass="simple_form spinner1" ID="SpinnerYearExtendable"
                                                        Enabled="False" AutoPostBack="True" OnTextChanged="CheckCondition" />
                                                </div>
                                                <div class="Duongnt8TextSpinner">
                                                    Years</div>
                                            </div>
                                            <div class="SpinnerMonth">
                                                <div class="Duongnt8Spinner">
                                                    <asp:TextBox runat="server" CssClass="simple_form spinner1" ID="SpinnerMonthExtandable"
                                                        Enabled="False" AutoPostBack="True" OnTextChanged="CheckCondition" />
                                                </div>
                                                <div class="Duongnt8TextSpinner">
                                                    Months</div>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li>Service Active</li>
                                        <li class="mutiline">Service Full Description</li>
                                        <li>Dept Code <span style="color: Red">*</span></li>
                                        <li>Service Type <span style="color: Red">*</span></li>
                                        <li>Service Description - Delivery</li>
                                        <li>Service Contract Code</li>
                                        <li>Service Contract Value</li>
                                        <li>Contract Staged Payment</li>
                                        <li>Referral Process/Method</li>
                                        <li>Service Time Limited</li>
                                        <li></li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:CheckBox ID="CheckBoxServiceActive" runat="server" Checked="False" Enabled="false" />
                                        </li>
                                        <li>
                                            <asp:TextBox TextMode="MultiLine" ID="TextAreaServiceFullDescription" runat="server" />
                                        </li>
                                        <li>
                                            <asp:TextBox ID="TextBoxDeptCode" runat="server" />
                                        </li>
                                        <li>
                                            <asp:DropDownList runat="server" ID="DropDownListServieType" />
                                        </li>
                                        <li>
                                            <asp:TextBox ID="TextBoxServiceDescriptionDelivery" runat="server" TextMode="MultiLine" /></li>
                                        <li>
                                            <asp:TextBox ID="TextBoxServiceContractCode" runat="server" />
                                        </li>
                                        <li>
                                            <asp:TextBox ID="TextBoxServiceConstractValue" runat="server" /></li>
                                        <li>
                                            <asp:CheckBox runat="server" ID="TextBoxContractStagedPayment" />
                                        </li>
                                        <li>
                                            <asp:DropDownList runat="server" ID="DropDownListReferralProcess" />
                                        </li>
                                        <li>
                                            <asp:CheckBox runat="server" ID="CheckBoxServiceTimeLimited" AutoPostBack="True"
                                                OnCheckedChanged="CheckBoxServiceTimeLimitedCheckedChanged" />
                                        </li>
                                        <li>
                                            <div class="SpinnerYear">
                                                <div class="Duongnt8Spinner">
                                                    <asp:TextBox runat="server" CssClass="simple_form spinner1" ID="SpinnerYearTimeLimited"
                                                        Enabled="False" />
                                                </div>
                                                <div class="Duongnt8TextSpinner">
                                                    Years</div>
                                            </div>
                                            <div class="SpinnerMonth">
                                                <div class="Duongnt8Spinner">
                                                    <asp:TextBox runat="server" CssClass="simple_form spinner1" ID="SpinnerMonthTimeLimited"
                                                        Enabled="False" />
                                                </div>
                                                <div class="Duongnt8TextSpinner">
                                                    Months</div>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <div class="clear">
                </div>
            </div>
            <div id="table_wTabs-2">
                <div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide ui-tabs-show">
                    <div class="Duongnt8WidgetContent">
                        <div class="g_6_tungtt">
                            <ul class="title_ul">
                                <li>Service Benefits Criterion </li>
                                <li>Service Barriers Criterion </li>
                                <li>Service Ethnicity Criterion </li>
                            </ul>
                            <ul class="control_ul">
                                <li>
                                    <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListServiceBenefitsCriterion" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel2" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListServiceBarriersCriterion" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel3" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListServiceEthnicityCriterion" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                            </ul>
                        </div>
                        <div class="g_6_tungtt">
                            <ul class="title_ul">
                                <li>Service Disability Criterion </li>
                                <li>Service Personal Circumstances Criterion </li>
                                <li>Other Service Participation Criterion</li>
                            </ul>
                            <ul class="control_ul">
                                <li>
                                    <asp:Panel ID="Panel4" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListServiceDisabilityCriterion" runat="server" CssClass="" type="checkbox"/>
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel5" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListServicePersonalCircumstancesCriterion" runat="server"
                                            CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel6" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListOtherServiceParticipationCriterion" runat="server"
                                            CssClass="" />
                                    </asp:Panel>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div id="table_wTabs-3">
                <div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide ui-tabs-show">
                    <div class="Duongnt8WidgetContent">
                        <div class="g_6_tungtt">
                            <ul class="title_ul">
                                <li>Client Support Process </li>
                                <li>Intervention </li>
                                <li>Client Journey </li>
                                <li>Other Service </li>
                                <li style="margin-top: -15px;">Support Centres </li>
                            </ul>
                            <ul class="control_ul">
                                <li>
                                    <asp:Panel ID="Panel7" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListClientSupportProcess" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel8" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListIntervention" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel9" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListClientJourney" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel10" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListOtherService" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel11" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListSupportCentres" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                            </ul>
                        </div>
                        <div class="g_6_tungtt">
                            <ul class="title_ul">
                                <li>Client Outcome</li>
                                <li>Target Client </li>
                                <li>Accreditation </li>
                                <li style="padding-top: -15px;">Referral Sources </li>
                                <li style="margin-top: -15px;">Programme </li>
                            </ul>
                            <ul class="control_ul">
                                <li>
                                    <asp:Panel ID="Panel12" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListClientOutcome" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel13" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListTargetClient" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel14" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListAccreditation" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:Panel ID="Panel15" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListReferralSources" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:DropDownList ID="DropDownListProgramme" runat="server" DataTextField="ProgrammeName"
                                        DataValueField="ProgrammeId">
                                    </asp:DropDownList>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div id="table_wTabs-4">
                <div class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide ui-tabs-show">
                    <div class="Duongnt8WidgetContent">
                        <div class="g_6_tungtt">
                            <ul class="title_ul">
                                <li>Contract Outcome </li>
                                <li style="margin-top: -10px;">Participation </li>
                            </ul>
                            <ul class="control_ul">
                                <li>
                                    <asp:Panel ID="Panel17" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListContractOutcome" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                                <li>
                                    <asp:DropDownList ID="DropDownListParticipation" runat="server">
                                        <asp:ListItem>Mandatory</asp:ListItem>
                                        <asp:ListItem>Voluntary</asp:ListItem>
                                        <asp:ListItem>Both</asp:ListItem>
                                    </asp:DropDownList>
                                </li>
                            </ul>
                        </div>
                        <div class="g_6_tungtt">
                            <ul class="title_ul">
                                <li>Contract Obligation </li>
                            </ul>
                            <ul class="control_ul">
                                <li>
                                    <asp:Panel ID="Panel16" runat="server" ScrollBars="Auto" CssClass="tungtt_panel">
                                        <asp:CheckBoxList ID="CheckBoxListContractObligation" runat="server" CssClass="" />
                                    </asp:Panel>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div id="table_wTabs-5">
                <asp:UpdatePanel runat="server" ID="UpdatePanelFunding">
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="CheckBoxFundingContonuationNeeded" EventName="CheckedChanged" />
                        <asp:AsyncPostBackTrigger ControlID="CheckBoxFundingDraisingComplete" EventName="CheckedChanged" />
                    </Triggers>
                    <ContentTemplate>
                        <div class="ui-tabs-panel ui-widget-content ui-corner-bottom">
                            <div class="Duongnt8WidgetContent">
                                <span class="TitleFunding">General</span><br />
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li>Funding Source</li>
                                        <li>Funding Contact Detail <span style="color: Red">*</span></li>
                                        <li>Funding Amount <span style="color: Red">*</span></li>
                                        <li>Funding Start</li>
                                        <li>Funding End</li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:DropDownList runat="server" ID="DropDownListFundingSource" CssClass="selector" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundingContactDetail" ReadOnly="True" MaxLength="200"
                                                CssClass="manager_text_length small_text" />
                                            <asp:HiddenField runat="server" ID="HiddenFieldFundingContactDetail" />
                                            <asp:Button runat="server" ID="ButtonLookup" Text="Lookup" CssClass="buttonlookup lookupcontact" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundingAmount" MaxLength="20" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundingStart" MaxLength="15" CssClass="pick_date" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundingEnd" CssClass="pick_date" />
                                        </li>
                                    </ul>
                                </div>
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li>Funding Needs</li>
                                        <li style="margin-top: -5px; line-height: 15px;">Funding Continuation Needed</li>
                                        <li style="margin-top: 5px; line-height: 15px;">Funding Continuation Amount</li>
                                        <li style="margin-top: 5px; line-height: 15px;">Funding Continuation Details</li>
                                        <li></li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundingNeeds" />
                                        </li>
                                        <li>
                                            <asp:CheckBox runat="server" ID="CheckBoxFundingContonuationNeeded" OnCheckedChanged="CheckBoxFundingContonuationNeededChanged"
                                                AutoPostBack="True" Checked="false" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundingContinuationAmount" Enabled="False" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" TextMode="MultiLine" ID="TextBoxFundingContinuationDetails"
                                                class="mutiline" Enabled="False" />
                                        </li>
                                        <li></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="Duongnt8WidgetContent">
                                <span class="TitleFunding">Fundraising For Service Project</span><br />
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li>Fundraising For Text</li>
                                        <li></li>
                                        <li></li>
                                        <li style="margin-top: 10px;">Fundraising Why</li>
                                        <li></li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingForText" TextMode="MultiLine" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingWhy" TextMode="MultiLine" />
                                        </li>
                                        <li></li>
                                        <li></li>
                                    </ul>
                                </div>
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li>Fundraising Needs</li>
                                        <li>Fundraising Required By</li>
                                        <li style="margin-top: -5px;">Fundraising Complete</li>
                                        <li style="margin-top: 5px; line-height: 15px;">Fundraising Completed Date</li>
                                        <li></li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingNeed" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingRequiredBy" CssClass="pick_date" />
                                        </li>
                                        <li>
                                            <asp:CheckBox runat="server" ID="CheckBoxFundingDraisingComplete" OnCheckedChanged="CheckBoxFundingDraisingCompleteChanged"
                                                AutoPostBack="True" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingCompledtedDate" CssClass="pick_date"
                                                Enabled="False" />
                                        </li>
                                        <li></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="Duongnt8WidgetContent">
                                <span class="TitleFunding">Fundraising Donor</span><br />
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li style="margin-top: 0px; line-height: 15px;">Fundraising Donor Anonymous</li>
                                        <li style="margin-top: 0px; line-height: 15px;">Fundrasing Donor Amount</li>
                                        <li></li>
                                        <li></li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:CheckBox runat="server" ID="CheckBoxFundrasingDonor" />
                                        </li>
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingDonorAmount" />
                                        </li>
                                        <li></li>
                                        <li></li>
                                    </ul>
                                </div>
                                <div class="g_6_tienvn">
                                    <ul class="title_ul">
                                        <li style="margin-top: 0px; line-height: 15px;">Fundraising Donation Date</li>
                                        <li style="margin-top: 0px; line-height: 15px;">Fundraising Donation Incremential</li>
                                    </ul>
                                    <ul class="control_ul">
                                        <li>
                                            <asp:TextBox runat="server" ID="TextBoxFundraisingDonation" CssClass="pick_date" />
                                        </li>
                                        <li>
                                            <asp:CheckBox runat="server" ID="CheckBoxFundraisingDonationIncremential" />
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div style="clear: both">
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div id="table_wTabs-6">
                <uc2:ServicePremise ID="ServicePremise" runat="server" />
                <div class="clear">
                </div>
            </div>
            <div id="table_wTabs-7">
                <uc2:Organisation ID="Organisation" runat="server" />
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
    <%-- pupop --%>
    <div class="dialog DialogListContact" style="display: none" title="List Contact">
        <uc1:ListContact runat="server" ID="ListContact" />
    </div>
</asp:Content>
